export const CommonText = {
	debugPreviewSchema: "设备快照"
};
export const AuthBtns = {
	disabledMod: "disabledMod",
	pathMod: "mod",
	iotDevice: "iot-device",
	softGateway: "soft-gateway",
	ss10Gateway: "ss10_gateway",
	ss30Gateway: "ss30_gateway",
	iotProduct: "iot-product"
};
export const SchemaNodeKey = {
	//类别
	schema: "schema",
	gatewaySchema: "gatewaySchema",
	profile: "profile",
	gatewayProfile: "gatewayProfile",
	detailInfo: "detailInfo",

	//schema字段
	title: "title",
	description: "description",
	properties: "properties",

	//业务节点分类
	basic: "basic",
	platform: "platform",
	system: "system",
	runtime: "runtime",
	sensor: "sensor",
	config: "config",
	props: "props",
	funcs: "funcs",

	//扩展节点：页面固定的项
	extNavDeviceParam: "navDeviceParam",
	extNavGatewayConfig: "navGatewayConfig",
	extNavGatewaySensor: "navGatewaySensor",
	extNavDeviceConfig: "navDeviceConfig",
	extNavSensorConfig: "navSensorConfig",
	extNavFuncConfig: "navFuncConfig",
	extRunningLog: "runningLog",
	extDevelop: "develop",
	extLower: "extLower",

	//业务配置节点
	sn: "sn",
	name: "name",
	subdevice: "subdevice",
	device: "device",
	gateway: "gateway"
};

export const SchemaNodeType = {
	string: "string",
	number: "number",
	integer: "integer",
	array: "array",
	float: "float",
	object: "object"
};

export const alarmParam = {
	warningMode: {
		max: { value: 1, label: "越上限" },
		min: { value: 2, label: "越下限" },
		range: { value: 3, label: "越上下限" },
		eq: { value: 4, label: "等于" },
		event: { value: 5, label: "事件" }
	},
	warningLevel: {
		// l1: { value: 1, label: "提示信息" },
		l2: { value: 1, label: "一般告警" },
		l3: { value: 2, label: "重要告警" },
		l4: { value: 3, label: "严重告警" },
		l5: { value: 4, label: "危险告警" }
	},
	isError: {
		yes: { value: 1, label: "是" },
		no: { value: 0, label: "否" }
	},
	autoDone: {
		auto: { value: true, label: "自动" },
		cust: { value: false, label: "人工" }
	},
	triggerType: {
		first: { value: 1, label: "首次" },
		every: { value: 2, label: "每次" }
	},
	warningType: {
		device: { value: 0, label: "设备触发" },
		platform: { value: 1, label: "平台触发" }
	}
};
